package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class PositionExpression implements NumericValueFunction {

    private int beginIndex;
    private int endIndex;
    private StringValueExpression stringValueExpression1;
    private StringValueExpression stringValueExpression2;
    private CharLengthUnits charLengthUnits;

    public PositionExpression(int beginIndex,
                              int endIndex,
                              StringValueExpression stringValueExpression1,
                              StringValueExpression stringValueExpression2,
                              CharLengthUnits charLengthUnits) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.stringValueExpression1 = stringValueExpression1;
        this.stringValueExpression2 = stringValueExpression2;
        this.charLengthUnits = charLengthUnits;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public StringValueExpression getStringValueExpression1() {
        return stringValueExpression1;
    }

    public StringValueExpression getStringValueExpression2() {
        return stringValueExpression2;
    }

    public CharLengthUnits getCharLengthUnits() {
        return charLengthUnits;
    }

}
